<%--
  Created by IntelliJ IDEA.
  User: 26056
  Date: 2021/5/13
  Time: 20:30
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript" src="../jquery-3.3.1.min.js"></script>
<html>
<head>
    <title>管理评论</title>
</head>
<body>
<div align = "center" >
<c:if test = "${not empty Comment}" >
    <c:forEach items="${Comment}" var="Comment" varStatus="s">
        <form action="/DeleteComment" method="post">
            <hr color="black" width="30%" size="3" align="center"/>
            ${s.count}. 评论者：${Comment.username}<br>文章：${Comment.articleName}<br>
            ${Comment.comment}<br>
            <hr color="black" width="30%" size="3" align="center"/>
            <input type="hidden" name="user" value = "${Comment.username}">
            <input type="hidden" name="articleName" value = "${Comment.articleName}">
            <input type="hidden" name="comment" value = "${Comment.comment}"><br>
            <input type="submit" value="删除"><br>
        </form>
    </c:forEach>
</c:if >

<td>
    <form action="/login/admin.jsp" method="post">
        <input type="submit" value="返回用户界面">
    </form>
</td>
</div>

</body>
</html>
